package com.kitchen.beans.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    /*
    * 评论ID
    * */
    @Id
    @Column(name = "comm_id")
    private Integer commId;

    /*
     * 用户ID
     * */
    @Column(name = "user_id")
    private Integer userId;

    /*
     * 作品ID
     * */
    @Column(name = "f_id")
    private Integer fId;

    /*
     * 点赞数
     * */
    @Column(name = "comm_praise")
    private Integer commPraise;

    /*
     * 评论
     * */
    @Column(name = "comm_content")
    private String commContent;

    /*
     * 评论时间
     * */
    @Column(name = "comm_time")
    private String commTime;

    /*
     * 判断是否为作者评论（1是作者，0是用户）
     * */
    @Column(name = "comm_grade")
    private Integer commGrade;

    /*
     * 对哪个评论id进行评论
     * */
    @Column(name = "to_answerid")
    private Integer toAnswerid;

    /*
     * 评论根
     * */
    @Column(name = "comm_root")
    private Integer commRoot;

    /*
     * 评论级别
     * */
    @Column(name = "comm_level")
    private Integer commLevel;
}
